package com.example.springboottest.example.selfhotswap;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class ExeMain {
    public static void main(String[] args) {
        InputStream is = null;
        try {
            is = new FileInputStream("/Users/fangdaye/work/workspace/spring-boot-test/out/production/classes/com/example/springboottest/example/dynamicproxy/HelloService.class");
            byte[] b = new byte[is.available()];
            is.read(b);

            String str = JavaclassExecuter.execute(b);
            System.out.println(str);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                is.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
